<?php 
if($_GET['id_del_km']){
	$sql_del="delete from qldl_khuyen_mai 
			  where MA_KHUYEN_MAI = '".$_GET['id_del_km']."'
			 ";
	$query_del = @mysql_query($sql_del,$conn);
	if(!$query_del) echo "<script>alert ('Lỗi khi xóa thông tin.')</script>";
	else echo "<script>alert ('Xóa thông tin thành công.')</script>";
echo "<meta http-equiv='refresh' content='0;url=index.php?page=km'>";
}?>
